package week7;

import java.util.Scanner;

public class Main4 {
	public static void main(String[] args) {
	    MyStarter starter;
	    Scanner sc = new Scanner(System.in );
	    int n = sc.nextInt();
	    String x = sc.next();
	    ActionListener ac = new  ActionListener(){

			@Override
			public void actionPerformed(ActionEvent e) {
				for(int i=0;i<n;i++){
		    		System.out.println(x);
		    	}
		    	System.out.println(this.getClass().getName());
			    System.out.println(Arrays.toString(this.getClass().getInterfaces()));
				
			}
	    	
	    };
	    starter = new MyStarter(ac);
	    starter.start();
	    sc.close();
	}
}
